var app = getApp()
Component({
    properties: {
        hasLinkIcon: Boolean,
        dataArr: Array
    },
    data: {
    },
    methods: {
        tapUser(e) {
            var index = e.currentTarget.dataset.index
            if (this.data.dataArr[index].hasData) {
                this.triggerEvent('tapUser', e.currentTarget.dataset.index)
            }
        },
        invite(e){
            // 没数据，就是跳转邀请，有数据不处理
            if (!e.currentTarget.dataset.name) {
                this.triggerEvent('invite', e.currentTarget.dataset.relation)
            }
        }
    }
})